package com.cjt.chat.pojo;

/**
 * @author cjt
 * @since 2024/3/29
 */
public class GroupMessage {
    //群组消息id
    private Integer messageId;
    //群组ID
    private Integer groupId;
    //发送者ID
    private Integer senderId;
    //消息内容
    private String content;
    //发送时间(毫秒)
    private Long messageTime;
    //发送时间格式化
    private String dateFormat;
    //发送者头像
    private String senderHead;
    //发送者昵称
    private String senderPetName;
    //消息类型
    private String messageType;

    public Integer getMessageId() {
        return messageId;
    }

    public void setMessageId(Integer messageId) {
        this.messageId = messageId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(Long messageTime) {
        this.messageTime = messageTime;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

    public String getSenderHead() {
        return senderHead;
    }

    public void setSenderHead(String senderHead) {
        this.senderHead = senderHead;
    }

    public String getSenderPetName() {
        return senderPetName;
    }

    public void setSenderPetName(String senderPetName) {
        this.senderPetName = senderPetName;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    @Override
    public String toString() {
        return "GroupMessage{" +
                "messageId=" + messageId +
                ", groupId=" + groupId +
                ", senderId=" + senderId +
                ", content='" + content + '\'' +
                ", messageTime=" + messageTime +
                ", dateFormat='" + dateFormat + '\'' +
                ", senderHead='" + senderHead + '\'' +
                ", senderPetName='" + senderPetName + '\'' +
                ", messageType='" + messageType + '\'' +
                '}';
    }
}
